package amqp.tutorials.all.topic;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TopicReceiver {

    @RabbitListener(queues = "topicQueue1")
    public void s1(Object msg) {
        log.info("1: " + msg);
    }

    @RabbitListener(queues = "topicQueue2")
    public void s2(Object msg) {
        log.info("2: " + msg);
    }


}
